<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="/JSP/Common/head.jsp"%>
<div class="nowPosition">你所在的位置是供应商管理</div>
<div class="supplier-div">
    <form action="${pageContext.request.contextPath }/JSP/sup.go" method="get" style="float: left;">
        <input name="method" value="getSupList" class="input-text" type="hidden">
        公司：<input type="text" class="txtclick supplier-input-text inshadow" id="querySupName" name="querySupName" value="" />
        联系人：<input type="text" class="txtclick supplier-input-text inshadow" id="querySupContacts" name="querySupContacts" value="" />
        <input type="hidden" id="pageIndex" name="pageIndex"/>
        <input class="supplier-submit inshadow-white btnclick" type="submit" value="查询"/>
    </form>
    <a class="btnclick supplier-a inshadow-white float-left" href="${pageContext.request.contextPath}/JSP/supplierAdd.jsp"><img src="../../SVG/addUserNofill.svg"/>&nbsp;&nbsp;添加供应商</a>
</div>

<table class="supplier-table" cellspacing="0" cellpadding="0">
    <tr bgcolor="#87CEEB">
        <th width="10%">编号</th>
        <th width="12%">公司</th>
        <th width="10%">联系人</th>
        <th width="5%">性别</th>
        <th width="5%">年龄</th>
        <th width="12%">地址</th>
        <th width="10%">电话</th>
        <th width="12%">合作</th>
        <th width="14%">操作</th>
    </tr>
    <c:forEach var="supplier" items="${supList }" varStatus="status">
        <tr>
            <td>
                <span title="${supplier.supCode }">${supplier.supCode }</span>
            </td>
            <td>
                <span title="${supplier.supName }">${supplier.supName }</span>
            </td>
            <td>
                <span title="${supplier.contacts}">${supplier.contacts}</span>
            </td>
            <td>
                <span title="${supplier.gender}">${supplier.gender}</span>
            </td>
            <td>
                <span title="${supplier.age}">${supplier.age}</span>
            </td>
            <td>
                <span title="${supplier.address}">${supplier.address}</span>
            </td>
            <td>
                <span title="${supplier.phone}">${supplier.phone}</span>
            </td>
            <td>
                <span title="${supplier.describe}">${supplier.describe}</span>
            </td>
            <td>
                <span><a class="supInformation" href="javascript:;" supId=${supplier.id } supName=${supplier.supName }><img src="${pageContext.request.contextPath }/SVG/selectUser.svg" title="查看" alt="查看" /></a></span>
                <span><a class="updateSup" href="javascript:;" supId=${supplier.id } supName=${supplier.supName }><img src="${pageContext.request.contextPath }/SVG/updateUser.svg" title="修改" alt="修改" /></a></span>
                <span><a class="deleteSup" href="javascript:;" supId=${supplier.id } supName=${supplier.supName }><img src="${pageContext.request.contextPath }/SVG/delUser.svg" title="删除" alt="删除" /></a></span>
                <%--<c:if test="${nowUserRole <= user.userRole}">
                    <c:if test="${nowUserRole < user.userRole || nowUserRole == 1}">
                    </c:if>
                </c:if>--%>
            </td>
        </tr>
    </c:forEach>
</table>
<input type="hidden" id="pageCount" value="${pageCount}"/>
<%@ include file="/JSP/Common/paging.jsp"%>
<%@ include file="/JSP/Common/foot.jsp"%>
<script type="text/javascript" src="${pageContext.request.contextPath}/JS/supplierList.js" ></script>